# Maintainer:
pkgname=neatvi
pkgver=10
pkgrel=0
pkgdesc="vi/ex editor with support for bidirectional UTF-8 text, syntax highlight and infinite undo/redo"
url="https://github.com/aligrudi/neatvi"
arch="all"
license="ISC" # vi.c
subpackages="$pkgname-doc"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/aligrudi/neatvi/archive/$pkgver.tar.gz
	conf.patch"

build() {
	make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}

package() {
	install -Dm755 "$builddir"/vi "$pkgdir"/usr/bin/neatvi
	install -Dm644 "$builddir"/README -t "$pkgdir"/usr/share/doc/neatvi
}

sha512sums="
80282e1bbdc3b4aeb62faf9d094175ace8a909bb036d075ed821b018c950e653ef49ab98c0ace77f5e5f1f10fc9d32a42152279abf635f0e639a4695ee907d5e  neatvi-10.tar.gz
1c67a6fb1cae78525a00ab5e78a6dfbbad1d5f79cd8daa09edd6cbc9b6c6a52729c6775b30b96c78e28f71d5e70ac10ad08cc0b3d5db54db6dc250ce0daea868  conf.patch
"
